const getters = {
  lowerIsShow: state => state.header.lowerIsShow,
  lowerIndex: state => state.header.lowerIndex,
  
  currentCommunity: (state, getters) => {
    let cid = getters.currentCommunityId
    return getters.communities.filter(item => {
      return item.communityId === cid
    })
  }
}

export default getters